﻿using Microsoft.Practices.Prism.ViewModel;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace CWM.Client.Models
{
  public partial  class Role : Selectable
    {
        private int? _id;
        private string _name;
        private string _description;
        private string _permission;
        private string _createUser;
        private DateTime? _createDate;
        private string _modifyUser;
        private DateTime? _modifyDate;
        private short? _status;

        public int? Id
        {
            get
            {
                return _id;
            }

            set
            {
                _id = value;
                this.RaisePropertyChanged("Id");
            }
        }

        public string Name
        {
            get
            {
                return _name;
            }

            set
            {
                _name = value;
                this.RaisePropertyChanged("Name");
            }
        }

        public string Description
        {
            get
            {
                return _description;
            }

            set
            {
                _description = value;
                this.RaisePropertyChanged("Description");
            }
        }

        public string Permission
        {
            get
            {
                return _permission;
            }

            set
            {
                _permission = value;
                this.RaisePropertyChanged("Permission");
            }
        }

        public string CreateUser
        {
            get
            {
                return _createUser;
            }

            set
            {
                _createUser = value;
                this.RaisePropertyChanged("CreateUser");
            }
        }

        public DateTime? CreateDate
        {
            get
            {
                return _createDate;
            }

            set
            {
                _createDate = value;
                this.RaisePropertyChanged("CreateDate");
            }
        }

        public string ModifyUser
        {
            get
            {
                return _modifyUser;
            }

            set
            {
                _modifyUser = value;
                this.RaisePropertyChanged("ModifyUser");
            }
        }

        public DateTime? ModifyDate
        {
            get
            {
                return _modifyDate;
            }

            set
            {
                _modifyDate = value;
                this.RaisePropertyChanged("ModifyDate");
            }
        }

        public short? Status
        {
            get
            {
                return _status;
            }

            set
            {
                _status = value;
                this.RaisePropertyChanged("Status");
            }
        }
    }
}
